import http from '../utils/axios';
interface getIndexData {
  endTime?: string;
  startTime?: string;
  time?: string;
}

export const getIndex = (params: getIndexData) => {
  return http.get<any>('/other/system/Home2', params);
};

export const getIndex2 = (data: getIndexData) => {
  return http.post<any>('/other/system/Home', data);
};
export const getIndexSole = (data: getIndexData) => {
  return http.post<any>('/other/system/Home1', data);
};
export const getSetUser = (data: any) => {
  return http.post<any>('/other/system/setUser', data);
};
